import axios from 'axios'
export const showRoles = async () => {
    let response = await axios({
        method:"get",
        url:"/api/roles"
    })
    return response.data;
}
export const getRoleIdsByUserId = async (userId) => {
    let response = await axios({
        method:"get",
        url:"/api/roles/users/"+userId
    })
    return response.data;
}